package com.scott.ch02.configuration;

import com.scott.ch02.bean.TeacherBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ScottConfiguration {


    @Bean
    public TeacherBean teacher(){
        TeacherBean scott=new TeacherBean();
        scott.setName("黄老师");
        scott.setAge(39);
        return scott;
    }
}
